import React, { memo } from 'react'

import {picUrl} from '@/untils/format-untils'
import {RadioCoverContent} from './style'
export default memo(function HYRadioCover(props) {
    const {info,width=100,height=100} = props
    return (
        <RadioCoverContent width={100} height={100}>
            <div className='album-img'>
                <img className='imgItem' src={picUrl(info.picUrl,width,height)}/>
                <a href="/todo" className='bgc-cover'></a>
            </div>
            <div className='album-info'>
                <div className='name'>{info.name}</div>
                <div className='artist'>{info.artist.name}</div>
            </div>
        </RadioCoverContent>
    )
})
